home *** CD-ROM | disk | FTP | other *** search
/ Aminet 1 (Walnut Creek) / Aminet - June 1993 [Walnut Creek].iso / aminet / util / shell / axsh_1_3_demo.lha / InstallDisk.lha / Install-AXsh_1.3 < prev    next >
AmigaDOS Script File  |  1992-10-18  |  2KB  |  88 lines

  1. .key name
  2. .def name "DH0:AXsh"
  3. ; script to install AXsh (WB 1.3)
  4.  
  5.  
  6. failat 20
  7. version version.library 38 >nil:
  8. if not warn
  9.     echo "You have Workbench 2.1. It's not recommended to use 1.3 install"
  10.     echo "script on this system."
  11. endif
  12.  
  13. version version.library 37 >nil:
  14. if not warn
  15.     echo "You have Workbench 2.0. It's not recommended to use 1.3 install"
  16.     echo "script on this system."
  17. endif
  18.  
  19. if not exists AXsh:
  20.     if not exists <name>
  21.         echo "The path (" noline
  22.         echo <name> noline
  23.         echo ") can't be found."
  24.         echo "If you proceed, the needed directory will be created."
  25.         ask "Proceed (y/n)?"
  26.         if warn
  27.             echo "If you want to install AXsh elsewhere, you must execute this script"
  28.             echo "from the AmigaShell with c:Execute. For example like this:"
  29.             echo
  30.             echo "    c:Execute AXshPack:Install-AXsh_1.3 DH0:Comm/AXsh
  31.             echo
  32.             echo "The last parameter defines the directory where AXsh will be installed."
  33.             wait 2
  34.             endcli
  35.         else
  36.             makedir <nimi>
  37.             if warn
  38.                 echo "Can't create needed directory - exiting..."
  39.                 wait 2
  40.                 endcli
  41.             endif
  42.         endif
  43.     else
  44.         assign AXsh: <name>
  45.     endif
  46. endif
  47.  
  48.  
  49. echo
  50. echo "Install AXsh system to '" noline
  51. echo <nimi> noline
  52. ask "' (y/n)?"
  53.  
  54. if warn
  55.     echo "Installing AXsh system - please wait..."
  56.     copy AXshPack:bin AXsh:bin all quiet
  57.     copy AXshPack:etc AXsh:etc all quiet
  58.     copy AXshPack:dev AXsh:dev all quiet
  59.     copy AXshPack:home AXsh:home all quiet
  60.     copy AXshPack:usr AXsh:usr all quiet
  61.     copy AXshPack:info AXsh:info all quiet
  62.     copy AXshPack:AXshAdmMan#? AXsh: quiet
  63.     copy AXshPack:AXshUpdates#? AXsh: quiet
  64.     echo "AXsh system installed."
  65. endif
  66.  
  67. echo
  68. ask "Install AXsh manual pages (y/n)?"
  69. if warn
  70.     echo "Installing AXsh manual pages - please wait..."
  71.     copy AXshPack:man AXsh:man all quiet
  72.     echo "Manual pages installed."
  73. endif
  74.  
  75. echo "Do you want to add needed mounting and system service starting commands"
  76. ask "to your S:Startup-Sequence (backup will be made) (y/n)?"
  77. if warn
  78.     echo >Ram:AXshInstTmp "C:Assign AXsh: <name>*NC:Execute AXsh:etc/StartupAdd.AXsh*N"
  79.     echo "Backupping S:Startup-Sequence to S:Copy_of_Startup-Sequence..."
  80.     copy S:Startup-Sequence S:Copy_of_Startup-Sequence
  81.     join ram:AXshInstTmp S:Copy_of_Startup-Sequence to S:Startup-Sequence
  82.     echo "Needed startup commands added to S:Startup-Sequence."
  83.     delete Ram:AXshInstTmp >NIL:
  84. endif
  85.  
  86. echo "AXsh installation completed."
  87. wait 2
  88.